import { SupplierRequest } from '@/plugins/supplier-request'

// 获取供应商绩效评分表
export const querySupplierRateListService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/performance/getPerformanceAll',
  type: 'post',
  data,
  loadingFn
});

// 导出
export const exportSupplierRateService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/export/export-performance-all',
  type: 'get',
  data,
  loadingFn,
  isExport: true
});

// 获取供应商成本控制能力
export const querySupplierCostControlListService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/performance/getCostControl',
  type: 'post',
  data,
  loadingFn
});

// 导出
export const exportCostControlService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/export/export-costControl',
  type: 'get',
  data,
  loadingFn,
  isExport: true
});

// 获取供应商产品交付能力
export const querySupplierProductDeliveryListService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/performance/getProductDelivery',
  type: 'post',
  data,
  loadingFn
});

// 导出
export const exportProductDeliveryService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/export/export-product-delivery',
  type: 'get',
  data,
  loadingFn,
  isExport: true
});

// 获取供应商质量管控能力
export const querySupplierQualityControlListService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/performance/getQualityControl',
  type: 'post',
  data,
  loadingFn
});

// 导出
export const exportQualityControlService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/export/export-quality_control',
  type: 'get',
  data,
  loadingFn,
  isExport: true
});

// 获取供应商财务能力
export const querySupplierFinancialListService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/performance/getPerformanceFinance',
  type: 'post',
  data,
  loadingFn
});

// 导出
export const exportFinancialService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/export/export-performance-finance',
  type: 'get',
  data,
  loadingFn,
  isExport: true
});

// 获取供应商服务能力
export const querySupplierServiceAbilityListService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/performance/getPerformanceService',
  type: 'post',
  data,
  loadingFn
});

// 导出
export const exportServiceAbilityService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/export/export-performance-service',
  type: 'get',
  data,
  loadingFn,
  isExport: true
});
